<script language="javascript">
   function CheckPost (){
      
     return true;
   }
</script>
<form class="needs-validation" name="addForm"  onsubmit="return CheckPost();">
<input type="hidden" name="language" value="#(C.get('language'))">
<div class="row">
    <div class="col-md-4 mb-3">
        <label for="keyword">
          #if(C.get('language')=='ch')
          关键字
          #else
          Keyword
          #end
        </label>
        <input type="text" class="form-control" id="keyword" name="keyword">
    </div>
    <div class="col-md-4 mb-3">
        <label for="select">
            #if(C.get('language')=='ch')
                机型
            #else
                Model
            #end
        </label>
        <select class="custom-select d-block w-100" id="model" name="model">
            <option value="">
                #if(C.get('language')=='ch')
                    请选择...
                #else
                    Please choose...
                #end
            </option>
            #airworthinessList()
            #for(str:model)
            <option value="#(str)">#(str)</option>
            #end
            #end
        </select>
    </div>
    <div class="col-md-4 mb-3">
        <label>
          #if(C.get('language')=='ch')
          通告编号
          #else
          Circular number
          #end
        </label>
        <input type="text" class="form-control" id="circularnumber" name="circularnumber">
    </div>
    
    <div class="col-md-4 mb-3">
        <label>
          #if(C.get('language')=='ch')
          起始时间
          #else
          Start Time
          #end
        </label>
        <input type="input" class="form-control" id="startTime" name="startTime">
    </div>
    <div class="col-md-4 mb-3">
        <label >
          #if(C.get('language')=='ch')
          结束时间
          #else
          End Time
          #end
        </label>
        <input type="input" class="form-control" id="endTime" name="endTime">
    </div>
    <div class="col-md-4 pt-4">
        <button class="btn btn-primary btn-block" type="submit">
            #if(C.get('language')=='ch')
                搜索
            #else
                Search
            #end
        </button>
    </div>
</div>
</form>
<script>
layui.use('laydate', function(){
  var laydate = layui.laydate;
  
  //执行一个laydate实例
  laydate.render({
    elem: '#startTime' //指定元素
    #if(C.get('language')=='en')
    ,lang: 'en'
    #end
  });
  //执行一个laydate实例
  laydate.render({
    elem: '#endTime' //指定元素
    #if(C.get('language')=='en')
    ,lang: 'en'
    #end
  });
});
</script>